<?php

namespace MyBlog\Models;

use Illuminate\Database\Eloquent\Model;

class Comment extends Model
{
    protected $guarded = array('id');
    
    public function article(){
    	return $this->belongsTo('MyBlog\Models\Article', 'article_id');
    }
    
    public function galleryImg() {
    	return $this->belongsTo('MyBlog\Models\GalleryImg', 'gallery_img_id');
    }
    
    public function gallery() {
    	return $this->belongsTo('MyBlog\Models\Gallery', 'gallery_id');
    }
}
